const { Schema,model } = require("mongoose");
//设置数据集合的结构
const salesPersonSchema = new Schema({
  salesName:String,
  salesPassword:String,
  gender:String,
  age:Number,
  power:Number,
  state:String,
},{versionKey:false});
//设置数据集合的模型
const SalesPerson = model('SalesPerson',salesPersonSchema,'salesperson');
module.exports.SalesPerson = SalesPerson;